package com.zy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class loginController {
    @RequestMapping(value="/login")
    public ModelAndView login(){
        ModelAndView mav = new ModelAndView("login");
        mav.getModel().put("name","张三");
        mav.getModel().put("sex","男");
        return mav;
    }
}
